package cn.com.cifi.mars.web.action;

import cn.com.cifi.mars.common.bean.R;
import cn.com.cifi.mars.common.constants.VersionConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author: JingYuanXiang
 * @date: 2021/4/7 15:47
 */
@Api(tags = "数据修复API")
@RequestMapping("/${spring.data.rest.base-path}/{apiVersion}/dataRecovery")
public interface IDataRecoveryController {

    @ApiOperation(value = "数据修复1", notes = "数据修复1")
    @PostMapping(value = "dataRecoveryOne")
    R dataRecoveryOne(@ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion);

    @ApiOperation(value = "数据修复2", notes = "数据修复2")
    @PostMapping(value = "dataRecoveryTwo")
    R dataRecoveryTwo(@ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion,
                      @ApiParam(value = "id列表", required = true) @RequestParam(name = "idList") List<String> idList);

    @ApiOperation(value = "数据修复3", notes = "数据修复3")
    @PostMapping(value = "dataRecoveryThree")
    R dataRecoveryThree(@ApiParam(value = "接口版本", required = true, defaultValue = VersionConstant.V1) @PathVariable(value = "apiVersion") String apiVersion,
                        @ApiParam(value = "id列表", required = true) @RequestParam(name = "idList") List<String> idList);

}
